* {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

.box {
    position: relative;
    margin: 0 auto;
    width: 500px;
    height: 300px;
    /* border: 1px solid black; */
    overflow: hidden;
}

.box>.img_box>ul {
    font-size: 0px;
    white-space: nowrap;
    transition: 0.2s ease-in-out;
    transform: translate(-100%);
}

.box>.img_box>ul>li {
    width: 500px;
    height: 300px;
    display: inline-block;
}


/* 激活类名, 显示li */

.box>.img_box>ul>li>a>img {
    width: 500px;
    height: 200px;
}


/* 左右箭头 */

.box>.img_box .arrow_left,
.box>.img_box .arrow_right {
    font-size: 30px;
    cursor: pointer;
    background-color: gray;
    color: #fff;
    width: 30px;
    text-align: center;
    opacity: 0.6;
}

.box>.img_box .arrow_left:hover,
.box>.img_box .arrow_right:hover {
    background-color: #000;
    opacity: 0.4;
}

.box>.img_box .arrow_left {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    left: 0px;
}

.box>.img_box .arrow_right {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    right: 0px;
}


/* 小圆点 */

.box>.dot_box {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.box>.dot_box>span {
    display: inline-block;
    width: 12px;
    height: 2px;
    border: 2px solid #000;
    margin: 0 8px;
    cursor: pointer;
    background-color: #fff;
}

.box>.dot_box>span:hover {
    background-color: pink;
}

.box>.dot_box .dotActive {
    background-color: skyblue;
}